<template>
    <div class="container">
        <div class="imgs" @click="goJump('welcome')">
            <img src="../assets/images/pic_img1/pic2.png" alt="">
        </div>
        <div class="imgs" @click="goJump()" style="margin-top: 107px;">
            <img src="../assets/images/pic_img1/pic1.png" alt="">
        </div>
        <div class="footers">Copyright © 2025 动车入库作业智能登销记系统</div>
    </div>
</template>
<script>
export default {
    data() {
        return {

        }
    },
    //http://你的域名/welcomes?token=abc123&user=jack
    created() {
        // 把 URL 里所有查询参数一次性存本地
        const query = this.$route.query;
        if (Object.keys(query).length) {
            Object.keys(query).forEach(k => {
                localStorage.setItem(k, query[k]);
            });
        }
    },
    methods: {
        goJump(type) {
            if (type == 'welcome') {
                this.$router.push("/welcomes")
            } else {
                this.$router.push("/faceWork?type=1")
            }
        }
    }
}
</script>
<style lang="scss" scoped>
.container {
    width: 100%;
    height: 100%;
    background-image: url("../assets/images/pic_img1/index_bg1.jpg");
    background-size: cover;

    .imgs {
        margin: 0 354px;

    }

    .imgs:first-child img {
        margin-top: 927px;
    }

    .footers {
        font-size: 36px;
        position: fixed;
        bottom: 40px;
        width: 780px;
        color: #fff;
        left: calc((100% - 780px) / 2);
    }
}
</style>